import { createApp } from 'vue'
import App from './App'
import router from './router'
import store from './store'

// 重置默认样式
import '@/assets/css/ress.css'

// 宠重置el样式
import '@/assets/css/resetElStyle.scss'

// 公共常用样式
import '@/assets/css/publicCss.scss'

import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
import lang from 'element-plus/lib/locale/lang/zh-cn'

// 全局CONFIG配置
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import CONFIG from '../public/config'

const app = createApp(App)
app.config.globalProperties.$CONFIG = CONFIG

app.use(store)
app.use(router)
app.use(ElementPlus, { locale: lang })
app.mount('#app')
